
// 引入插件
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
const path=require("path");

module.exports= {
    configureWebpack:{
        plugins: [
            AutoImport({
                resolvers: [ElementPlusResolver()]
            }),
            Components({
                resolvers: [ElementPlusResolver()]
            })
        ],
        resolve:{
            // 配置路径别名
            alias:{
                "@":path.resolve(__dirname,"./src")
            }
        }
    },
    css: {
        loaderOptions: {
            scss: {
                prependData: "@import '@/assets/scss/common.scss';"
            }
        }
    }
};